<div id="app">
    <button v-show="index > 0 " @click="index--">上一页</button>
    <div>
        <img :src="list[index]" alt="" width="100px" height="100px">
    </div>
    <button v-show="index < list.length-1 " @click="index++">下一页</button>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.16/dist/vue.js"></script>
<script>
    const app = new Vue({
        el: "#app",
        data: {
            index: 0,
            list: [
                '../img/1.png',
                '../img/2.jpg',
                '../img/3.jpg',
                '../img/4.jpg',
            ]
        }
    })
</script>